Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define float/double math functions in generator #390

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Define float/double math functions in generator #390

wants to merge 1 commit into from

Conversation

szagoruyko
Copy link
Member

so that generated functions can use corresponding functions. Patch is coming from ztorch/lib/THZ/THZGenerateAllTypes.h

fix for nn functions is coming

cc @fmassa

@soumith
Copy link
Member

soumith commented Oct 4, 2015

@szagoruyko the definitions are in the wrong place. (see where the undef for floats are for example, they come right after the defines). can you re-check the PR.

@szagoruyko
Copy link
Member Author

oops, I have to be more careful. fixed

@fmassa
Copy link
Contributor

fmassa commented Oct 4, 2015

Shouldn't you also modify THTensorMath.c to reflect those changes ? Like in https://github.com/torch/torch7/blob/master/lib/TH/generic/THTensorMath.c#L1843 ? More generally, change all calls to fabs etc to be THAbs etc ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants